package com.xkcyy.one;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * AI对话智能体应用程序入口
 *
 * @author AI Assistant
 */
@SpringBootApplication
@MapperScan("com.xkcyy.one.**.mapper")
@EnableAsync
public class OneAgentApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(OneAgentApplication.class, args);
		String port = context.getEnvironment().getProperty("server.port", "8080");
		System.out.println("\nApplication is running!");
		System.out.println("Swagger UI: http://localhost:" + port + "/swagger-ui.html");
		System.out.println("API Docs: http://localhost:" + port + "/v3/api-docs\n");
	}

}
